package cn.edu.scau.cmi.houzhicong.combinationPattern.safetyPattern;

public class SafetyPerson extends SafetyComponent {
	public SafetyPerson(String name) {
		super(name);
	}

	@Override
	public String display() {
		return String.format("This is a person named %s and it's parent is %s.", name,
				parent!=null?parent.getName():null);
	}
}
